btnSearch = document.querySelector(".search");
btnSearchClose = document.querySelector(".header__search-button-close");

btnSearch.addEventListener("click", function (e) {
  document
    .querySelector(".header__search")
    .classList.toggle("header__search--active");
  document.querySelector(".search").classList.toggle("hidden");
});

btnSearchClose.addEventListener("click", function () {
  document
    .querySelector(".header__search")
    .classList.toggle("header__search--active");
  document.querySelector(".search").classList.toggle("hidden");
});
